package com.example.pay.service;

import com.example.pay.domain.Time;
import com.example.pay.mapper.TimeMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: Wu YunXia
 * @Description:
 * @Date: Created in 15:45 2020/12/7
 * @Modefied By:
 */
@Service
public class TimeServiceImpl {
    @Resource
    TimeMapper timeMapper;


    /**
    * @Date 14:32 2020/12/8
    * @desc: 添加
    */
    public int addTime(String userId, String timmer, String tip){
        return timeMapper.addTime(userId, timmer, tip);
    }

    public List<Time> queryAll(String userId){
        return timeMapper.queryAll(userId);
    }

    public int delTime(int id){
        return timeMapper.delTime(id);
    }
}
